package com.jky.stmall.exercise;

public class reserve {
    public static void main(String[] args) {
        int [] a={1,2,3,4,5,6};
        int x;
        for (int i =0;i<3;i++){
            x= a[a.length-1];
            for (int j =a.length-1;j>0;j--){
                a[j]=a[j-1];
            }
            a[0]=x;
        }
        for (int i =0;i<a.length;i++){
            System.out.println(a[i]);
        }
    }
}
